-- GENERATED SPELL FOR [Alterac Yeti] --


function spell0_13959(pUnit, Event) --@Frost Breath,n/a--
pUnit:FullCastSpellOnTarget(22479,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_13959', 6250, 1)
end

function spell1_13959(pUnit, Event) --@War Stomp,Self--
pUnit:FullCastSpellOnTarget(16727,pUnit)
pUnit:RegisterEvent('Sorts_13959', 5280, 1)
end

function Sorts_13959(pUnit, Event)
local choix_sorts_13959 = math.random(0, 1)
if choix_sorts_13959 == 0 then
pUnit:RegisterEvent('spell0_13959', 1, 1)
end
if choix_sorts_13959 == 1 then
pUnit:RegisterEvent('spell1_13959', 1, 1)
end
end

function mob13959_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_13959', math.random(1500, 3000), 1)
end

function mob13959_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob13959_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob13959_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(13959, 1, 'mob13959_Action')
RegisterUnitEvent(13959, 2, 'mob13959_Leave')
RegisterUnitEvent(13959, 3, 'mob13959_Kill')
RegisterUnitEvent(13959, 4, 'mob13959_Die')
